<?php

namespace app\common\model;

class Config extends \think\Model
{
    protected $json = ['options'];
    protected $jsonAssoc = true;

    protected $name = 'config';

    /**
     * 关联配置分组
     */
    public function cate()
    {
        return $this->belongsTo(ConfigCate::class, 'cate_id', 'id');
    }
}
